package com.ruoyi.project.loan.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 贷款合同对象 loan_contract
 *
 * @author ruoyi
 * @date 2025-11-11
 */
public class LoanContract extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long contractId;

    /**
     * 贷款申请
     */
    @Excel(name = "贷款申请" )
    private Long applicationId;

    /**
     * 电子签名
     */
    @Excel(name = "电子签名" )
    private String digitalSignature;

    /**
     * 签约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd" )
    @Excel(name = "签约时间", width = 30, dateFormat = "yyyy-MM-dd" )
    private Date signTime;

    /**
     * 生效日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd" )
    @Excel(name = "生效日期", width = 30, dateFormat = "yyyy-MM-dd" )
    private Date effectiveDate;

    /**
     * 到期日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd" )
    @Excel(name = "到期日期", width = 30, dateFormat = "yyyy-MM-dd" )
    private Date expireDate;

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }

    public Long getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(Long applicationId) {
        this.applicationId = applicationId;
    }

    public String getDigitalSignature() {
        return digitalSignature;
    }

    public void setDigitalSignature(String digitalSignature) {
        this.digitalSignature = digitalSignature;
    }

    public Date getSignTime() {
        return signTime;
    }

    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }

    public Date getEffectiveDate() {
        return effectiveDate;
    }

    public void setEffectiveDate(Date effectiveDate) {
        this.effectiveDate = effectiveDate;
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("contractId", getContractId())
                .append("applicationId", getApplicationId())
                .append("digitalSignature", getDigitalSignature())
                .append("signTime", getSignTime())
                .append("effectiveDate", getEffectiveDate())
                .append("expireDate", getExpireDate())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
